﻿namespace PgBirdie.Core.Model.Database.Structure.Constraint
{
    public class PgCheck : PgConstraintBase
    {
        public string ColumnName { get; private set; }
        public string Operation { get; private set; }
        public string Expression { get; private set; }
        
        public PgCheck(string name, PgTable table, ConstraintType constraintType, string columnName, string operation, string expression)
            : base(name, table, constraintType)
        {
            ColumnName = columnName;
            Operation = operation;
            Expression = expression;
        }
    }
}